package com.datang.pet.mapperExtend;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-06-13 08:34
 * @notify
 * @version 1.0
 */

import com.datang.pet.vo.GetHotCommentResponse;
import com.datang.pet.vo.GetTalkListResponse;
import com.datang.pet.vo.GetTwoCommentResponse;
import com.datang.pet.vo.TalkInfoResponse;
import com.datang.pet.pojo.TalkSearchRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TalkMapperExtend {
    List<GetTalkListResponse> getTalkList(Date time);

    List<GetTalkListResponse> getTalkListByUserId(String userId);

    List<GetTalkListResponse> getTalkListByKeyword(@Param(value = "keyword") String keyword, Date time);

    List<GetTalkListResponse> getTalkLikeLabel(@Param(value = "label")  String label,String talkId);

    List<TalkSearchRecord> getSearchRecordList();

    TalkInfoResponse getTalkInfo(String talkId, String userId);

    void increaseTalk(String talkId, String type);

    void decrementTalk(String talkId, String type);

    void increaseOneComment(String commentId, String type);

    void decrementOneComment(String commentId);

    void increaseOrDecrementTwoComment(String commentId, String type);

    List<GetHotCommentResponse> getHotCommentResponseByTalkId(String talkId, String userId);

    List<GetHotCommentResponse> getCommentResponseByTalkIdNotInHotListOrderByDate(String talkId, List<String> hotIds, Date time,String userId);

    List<GetTwoCommentResponse> getTwoCommentByOneCommentIdNotInIdOrderByDate(String oneCommentId, String notTwoId, Date time, String userId);
}
